package com.asc.service.user.controller;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.asc.service.user.service.UserService;
import com.asc.utils.DateTimeUtil;
import com.asc.utils.HTMLUtil;
import com.asc.common.entity.TUUser;

@RestController
@RequestMapping("/user")
public class UserController {
	
	@Autowired
	private UserService userService;

	//测试
	@RequestMapping("/test")
	public void test(HttpServletRequest request,HttpServletResponse response) {
		Map<String,Object> requestMap = HTMLUtil.getPageParams(request);
		System.out.println("测试地址："+DateTimeUtil.getNowDateTimeString());
		System.out.println(requestMap);
		List<TUUser> users = userService.queryUser(requestMap);
		System.out.println(users);
	}
	
}
